<template>
    <div>
        <h1>我是哥哥我开的车是{{car}}</h1>
        <button @click="changeCar">点击换车</button>
    </div>
</template>

<script>
    export default {
        name : 'Header',
        props:['car' ,'changeCar'] ,

    }
</script>

<style lang="css" scoped>

</style>